package cn.itsource.org.service;

import cn.itsource.basic.AjaxResult;
import cn.itsource.basic.PageList;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    /**
     * 通过id查询部门
     * @param id
     * @return
     */
    Employee queryOne(Long id);

    /**
     * 查询所有部门数据
     * @return
     */
    List<Employee> queryAll();

    /**
     * 新增
     * @param employee
     */
    void add(Employee employee);

    /**
     * 修改
     * @param employee
     */
    void update(Employee employee);

    /**
     * 通过id删除数据
     * @param id
     */
    void delete(Long id);

    /**
     * 分页查询
     * @param employeeQuery
     * @return
     */
    PageList<Employee> queryPage(EmployeeQuery employeeQuery);

    AjaxResult patchDelete(List<Long> ids);

}
